package reflect.classloader;

public class ClassLoader {
    public static void main(String[] args) {
        //获取String类的Class字节码文件
        Class<String> stringClass = String.class;
        //启动类加载器
        java.lang.ClassLoader classLoader = stringClass.getClassLoader();
        System.out.println(classLoader);

        //获取自己定义类的应用程序加载器
        System.out.println(Student.class.getClassLoader());
    }

}
class Student{
    private String name;
    private int age;
}
